package com.hua.demo.mapper;

import com.hua.demo.entity.User;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.hua.demo.vo.UserVo;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author shuai
 * @since 2021-01-17
 */
@Repository
public interface UserMapper extends BaseMapper<User> {


    @Select("select * from sys_user u,sys_type t where u.type_id = t.type_id")
    List<UserVo> finds();

    List<User> findAll();
}
